import request from '@/utils/request'

// 查询关系密切家庭成员基本情况列表
export function listRiskFamilyMembers(query) {
  return request({
    url: '/familyMembers/riskFamilyMembers/list',
    method: 'get',
    params: query
  })
}

// 查询关系密切家庭成员基本情况详细
export function getRiskFamilyMembers(id) {
  return request({
    url: '/familyMembers/riskFamilyMembers/' + id,
    method: 'get'
  })
}

// 保存关系密切家庭成员基本情况
export function saveRiskFamilyMembers(data) {
  return request({
    url: '/familyMembers/riskFamilyMembers/save',
    method: 'post',
    data: data
  })
}

// 删除关系密切家庭成员基本情况
export function delRiskFamilyMembers(id) {
  return request({
    url: '/familyMembers/riskFamilyMembers/' + id,
    method: 'delete'
  })
}

// 导出关系密切家庭成员基本情况
export function exportRiskFamilyMembers(query) {
  return request({
    url: '/familyMembers/riskFamilyMembers/export',
    method: 'get',
    params: query
  })
}
